package br.edu.unifei.cct720.trabalho08.modelo.ponto;

public class Ponto3D {
	
	// Declaracao de variaveis de instacia
	private int x;
	private int y;
	private int z;

	
	/**
	 * Construtor
	 */
	public Ponto3D() {
		this(0, 0, 0);
	}

	/**
	 * Construtor
	 * 
	 * @param x
	 * @param y
	 * @param z
	 */
	public Ponto3D(int x, int y, int z) {
		this.x = x;
		this.y = y;
		this.z = z;
	}

	/**
	 * Construtor
	 * 
	 * @param x
	 * @param y
	 * @param z
	 */
	public Ponto3D(double x, double y, double z) {
		this((int) Math.round(x), (int) Math.round(y), (int) Math.round(z));
	}

	// Metodos getters e setters
	public int getX() {
		return x;
	}

	public int getY() {
		return y;
	}

	public int getZ() {
		return z;
	}
}
